﻿using AutoMapper;
using Product.Common.Command;
using Product.Domain.Entity;
using Product.EntityFrameworkCore.PO;
using System;
using System.Collections.Generic;
using System.Text;

namespace Product.Common
{
    public class AutomapperConfig : Profile
    {
        public AutomapperConfig()
        {
          
            CreateMap<SpecificationCommand, Specification>();
            CreateMap<SkuCommand, Sku>();

            CreateMap<Spu, SpuPo>();
            CreateMap<Specification, SpecificationPo>();
            CreateMap<Sku, SkuPo>();
            CreateMap<Category, CategoryPo>();
            CreateMap<Brand, BrandPo>();

        }
    }
}
